package com.payment.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.payment.common.support.Convert;
import com.payment.system.domain.PypStore;
import com.payment.system.mapper.PypStoreMapper;
import com.payment.system.service.IPypStoreService;

/**
 * 碰一碰 服务层实现
 * 
 * @author payment
 * @date 2020-01-09
 */
@Service
public class PypStoreServiceImpl implements IPypStoreService 
{
	@Autowired
	private PypStoreMapper pypStoreMapper;

	/**
     * 查询碰一碰信息
     * 
     * @param id 碰一碰ID
     * @return 碰一碰信息
     */
    @Override
	public PypStore selectPypStoreById(String id)
	{
	    return pypStoreMapper.selectPypStoreById(id);
	}
	
	/**
     * 查询碰一碰列表
     * 
     * @param pypStore 碰一碰信息
     * @return 碰一碰集合
     */
	@Override
	public List<PypStore> selectPypStoreList(PypStore pypStore)
	{
	    return pypStoreMapper.selectPypStoreList(pypStore);
	}
	
    /**
     * 新增碰一碰
     * 
     * @param pypStore 碰一碰信息
     * @return 结果
     */
	@Override
	public int insertPypStore(PypStore pypStore)
	{
	    return pypStoreMapper.insertPypStore(pypStore);
	}
	
	/**
     * 修改碰一碰
     * 
     * @param pypStore 碰一碰信息
     * @return 结果
     */
	@Override
	public int updatePypStore(PypStore pypStore)
	{
	    return pypStoreMapper.updatePypStore(pypStore);
	}

	/**
     * 删除碰一碰对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deletePypStoreByIds(String ids)
	{
		return pypStoreMapper.deletePypStoreByIds(Convert.toStrArray(ids));
	}

	@Override
	public PypStore selectPypStoreByMerchantId(String merchantId) {
		return pypStoreMapper.selectPypStoreByMerchantId(merchantId);
	}
	
}
